package com.wzweb.entity;

import java.sql.ResultSet;

import com.wzweb.dao.util.DBParse;

public class TeacherInfoParse implements DBParse {
	@Override
	public Object parseEntity(ResultSet rs)throws Exception {
		TeacherInfo teacher=new TeacherInfo();
		teacher.setTeacherInfoID(rs.getInt("teacherInfoID"));
		teacher.setTeacherName(rs.getString("teacherName"));
		teacher.setBirthday(rs.getString("birthday"));
		teacher.setEmail(rs.getString("email"));
		teacher.setGender(rs.getInt("Gender"));
		teacher.setJobTitle(rs.getString("jobTitle"));
		teacher.setMajor(rs.getString("major"));
		teacher.setUserID(rs.getInt("UserID"));
		return teacher;
	}
}
